package cn.iocoder.yudao.module.xiaoBizHandler.dal.mysql.tbGenInstance;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.xiaoBizHandler.dal.dataobject.tbGenInstance.XTbGenInstanceDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.xiaoBizHandler.controller.admin.tbGenInstance.vo.*;
/**
 * 代码生成示例 Mapper
 *
 * @author xiaosy
 */
@Mapper
public interface XTbGenInstanceMapper extends BaseMapperX<XTbGenInstanceDO> {

    default PageResult<XTbGenInstanceDO> selectPage(XTbGenInstancePageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<XTbGenInstanceDO>()
			                .likeIfPresent(XTbGenInstanceDO::getName, reqVO.getName())

                .orderByDesc(XTbGenInstanceDO::getId));

    }

    default List<XTbGenInstanceDO> selectList(XTbGenInstanceExportReqVO reqVO) {
        return selectList(new LambdaQueryWrapperX<XTbGenInstanceDO>()
			                .likeIfPresent(XTbGenInstanceDO::getName, reqVO.getName())

                .orderByDesc(XTbGenInstanceDO::getId));

    }

}

